package com.dodayum;

import com.dodayum.dubbo.RegistryInfo;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @Author DoDayum
 * @Date 2024-01-24-21:25
 */
public class MyListenerClass implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        new RegistryInfo();
        System.out.println("**********");
        System.out.println("项目启动成功");
        System.out.println("**********");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("**********");
        System.out.println("项目关闭成功");
        System.out.println("**********");
    }
}
